package ferus.tigris.lines.Builders;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import ferus.tigris.lines.GameView;
import ferus.tigris.lines.personages.AbstractBehavior;

public class BuilderWith8Builders extends AbstractBehaviorBuilder {

	public AbstractBehavior createRandomMark(GameView view) {
		List<AbstractBehaviorBuilder> builders = new ArrayList<AbstractBehaviorBuilder>();
		builders.add(new CatBuilder());
		builders.add(new BuggyBuilder());
		builders.add(new MouseBuilder());
		builders.add(new BirdBuilder());
		builders.add(new FrogBuilder());
		builders.add(new RabbitBuilder());
		builders.add(new BearBuilder());
		builders.add(new PigBuilder());
		
		Random rnd = new Random();
		AbstractBehaviorBuilder builder = builders.get(rnd.nextInt(builders.size()));
		
		return builder.create(view);
	}

}
